import { http } from "@/utils/http"

/**
 * 积分明细
 */
export const getPointList = () => {
    return http({
        method: 'GET',
        url: '/client/withdraw/userScoreList',
    })
}

/**
 * 提现记录
 */
export const getWithdrawList = (data) => {
    return http({
        method: 'GET',
        url: '/client/withdraw/list',
        data,
    })
}

/**
 * 用户的可用积分和手续费比例
 */
export const getPointDetail = () => {
    return http({
        method: 'GET',
        url: '/client/withdraw/config',
    })
}

/**
 * 提现接口
 */
export const pointWithdraw = (data) => {
    return http({
        method: 'POST',
        url: '/client/withdraw',
        data,
    })
}

/**
 * 提现接口
 */
export const pointSortList = (data) => {
    return http({
        method: 'GET',
        url: '/client/sort/list',
        data,
    })
}

/**
 * 返还积分公告
 */
export const getReceiveList = (data) => {
    return http({
        method: 'GET',
        url: '/client/sort/receiveList',
        data,
    })
}